package cn.easybuy.dao.impl;

import cn.easybuy.dao.BaseDao;
import cn.easybuy.dao.OrderDetailDao;
import cn.easybuy.entity.OrderDetail;

public class OrderDetailDaoImpl extends BaseDao implements OrderDetailDao{

	@Override
	public int saveOd(OrderDetail oDetail) {
		String sql="insert into easybuy_order_detail(orderId,productId,quantity,cost) values(?,?,?,?)";
		int num=this.executeUpdate(sql, oDetail.getOrderId(),oDetail.getProductId(),oDetail.getQuantity(),oDetail.getCost());
		return num;
	}

}
